﻿using Dapr.Client;
using DaprDemo.Shared;

HttpClient client = DaprClient.CreateInvokeHttpClient(appId: "app2");
var input = new Input { X = 1, Y = 2 };

var response = await client.PostAsync("add", JsonContent.Create(input));
Output? output = await response.Content.ReadFromJsonAsync<Output>();
Console.WriteLine("result ===={0}", output);
Console.ReadKey();